
<%@page import="com.wanmait.shoppingsys.vo.Trade"%>
<%@page import="com.wanmait.shoppingsys.vo.Goods"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
<%
	String path = request.getServletContext().getContextPath();
%>
<link rel="stylesheet" href="<%=path%>/css/font.css">
<link rel="stylesheet" href="<%=path%>/css/xadmin.css">

<script type="text/javascript" src="<%=path%>/js/jquery-3.3.1.min.js"></script>
<script src="<%=path%>/lib/layui/layui.js" charset="UTF-8"></script>
<script type="text/javascript" src="<%=path%>/js/xadmin.js"></script>
<body>
<div class="x-body">
	 <table class="layui-table">
		<thead>
          <tr>
            <th>
              <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>
            <th>序号</th>
            <th>编码</th>
           	<th>商品</th>
            <th>价格</th>
            <th>数量</th>
            <th>支付状态</th>
           </tr>
        </thead>
               <tbody>
        <%
			ArrayList<Trade> trades = (ArrayList<Trade>)request.getAttribute("trades");
			for (int i = 0; trades != null && i < trades.size(); i++) {
				Trade trade = trades.get(i);
		%>
          <tr>
            <td>
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
            </td>

            <td><%=i+1 %></td>
            <td><%=trade.getId() %></td>
            <td><%=trade.getSpecialty().getName() %></td>
            <td><%=trade.getOrderPrice() %></td>
            <td><%=trade.getOrderCount() %></td>
            <td>已支付</td>
     
          </tr>
          <%} %>
        </tbody>
      </table>
		
</div>	
</body>
</html>

